import { createStore } from 'vuex'
import modules from './modules'


export default createStore({
  state:{
    text:'亚雷',
<<<<<<< HEAD
    count:2
  },
  getters:{

=======
  },
  mutations: {
    // 传入 state
    sum (state, num) {
      state.count += num
    }
>>>>>>> 215f03e587d8f17161ec20bf613a5cff5f45ed02
  },
  modules
})
